home *** CD-ROM | disk | FTP | other *** search
- Path: etek.chalmers.se!chalmers.se!sunic!news.funet.fi!fuug!fipnet!diode.fipnet.fi!elfuerte!harry
- From: harry@elfuerte.fipnet.fi (Harri P Pesonen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS6.1 users: please read
- Message-ID: <harry.03fq@elfuerte.fipnet.fi>
- Date: 5 Dec 92 16:11:58 GMT
- Organization: Fipnet, Helsinki, Finland
- Lines: 15
- X-NewsSoftware: GRn 1.16f (10.17.92) by Mike Schwartz & Michael B. Smith
-
- In article ??? koren@fc.hp.com (Steve Koren) writes:
- >
- > I can believe the program is doing the correct thing by ANSI standards.
- > But personally, I'd expect the result of doing arithmetic on a signed
- > and unsigned int to result in a signed number.
-
- I thought that it depends on what is on the left side.
-
- (unsigned)1 - (signed)2 -> (unsigned)-1, which is 65535 or 2^32-1
-
- > - steve
-
- --
- Harri Pesonen harry@elfuerte.fipnet.fi
- Helsinki, Finland, EC? Markka is floating... 1 USD = 5.1 FIM
-